import React, { Component } from 'react';
import { View, Text, NativeModules, StatusBar } from 'react-native';

export default class FlagSecurePage extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentDidMount() {
    NativeModules.FlagSecure.setFlag();
  }
  componentWillUnmount() {
    NativeModules.FlagSecure.clearFlag();
  }

  render() {
    return (
      <View
        style={{
          flex: 1,
          paddingTop: StatusBar.currentHeight,
          justifyContent: 'space-around',
          alignItems: 'center'
        }}
      >
        <Text> FlagSecurePage </Text>
      </View>
    );
  }
}
